package com.yhsimon.realm.member.entity.user;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Builder;
import lombok.Data;

/**
 * 抢仙豆活动表
 * @TableName ums_seckill_bean_activity
 */
@TableName(value ="ums_seckill_bean_activity")
@Data
@Builder
public class SeckillBeanActivityEntity implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 场次名称，如2024-05-28-15
     */
    @TableField(value = "session_name")
    private String sessionName;

    /**
     * 仙豆抢购份数
     */
    @TableField(value = "seckill_count")
    private Integer seckillCount;

    /**
     * 单份仙豆数量
     */
    @TableField(value = "bean_count")
    private Integer beanCount;

    /**
     * 仙豆抢购份数
     */
    @TableField(value = "seckill_limit")
    private Integer seckillLimit;

    /**
     * 活动开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 活动结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 创建时间
     * 表示新增和更新时不处理该字段，即生成sql语句中不包含该字段。
     */
    @TableField(value = "create_time", insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date updateTime;

    /**
     * 启用状态 0 未删除  1 已删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}